// 输出指定名称和路径的打包文件
const fs = require('fs');
const path = require('path');

const exportBundle = (str) => {
  fs.mkdirSync('./dist');
  fs.writeFileSync('./dist/bundle.js', str);
};

module.exports = exportBundle;
